<%@ page import="com.hf.order.UserOrderHistory" %>

<div class="fieldcontain ${hasErrors(bean: userOrderHistoryInstance, field: 'user', 'error')} required">
	<label for="user">
		<g:message code="userOrderHistory.user.label" default="User" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="user" name="user.id" from="${com.hf.security.OrderUser.list(sort:'name')}" optionKey="id" required="" value="${userOrderHistoryInstance?.user?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userOrderHistoryInstance, field: 'orderDate', 'error')} required">
	<label for="orderDate">
		<g:message code="userOrderHistory.orderDate.label" default="Order Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="orderDate" precision="day"  value="${userOrderHistoryInstance?.orderDate}"  />
</div>